/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JPnlSignals.java
 *
 * Created on 06/03/2010, 14:09:55
 */
package systole.view.tabs;

import java.awt.BorderLayout;
import org.jfree.chart.ChartPanel;
import systole.view.charts.XYChart;
import systole.view.tabs.patientsignals.JPnlRecordDetails;


/**
 *
 * @author jmj
 */
public class JPnlSignals extends javax.swing.JPanel {

    /**
	 * 
	 */
    private static final long serialVersionUID = 562847837904879885L;


    private JPnlRecordDetails signalsView;



	/** Creates new form JPnlSignalshee
	 * @param parent 
     * 
     */
    public JPnlSignals() {
        initComponents();
    }

    /**
     * @param rawSignal
     * @param filteredSignalChart
     * @param filteredSignal
     */
    public void addRecordCharts(ChartPanel rawSignal, ChartPanel filteredSignalChart, XYChart filteredSignal){

        this.signalsView = new JPnlRecordDetails();

        this.add(this.signalsView, BorderLayout.CENTER);
        this.signalsView.getjPnlRawSignal().add(rawSignal, BorderLayout.CENTER);

        this.signalsView.getjPnlProccesedSignal().add(filteredSignalChart, BorderLayout.CENTER);
        
        this.signalsView.revalidate();

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setName("Form"); // NOI18N
        setPreferredSize(new java.awt.Dimension(500, 532));
        setLayout(new java.awt.BorderLayout());
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
